package EqualsTest;

public class Student {

    public  static void main(String[] args) {


        EqualsTest b = new EqualsTest("张三",2);
        EqualsTest a = new EqualsTest("张三",2);
        System.out.println(a.equals(b)?"相同":"不相同");
        System.out.println(a.toString());
        System.out.println(b.toString());

    }




}
